//
//  UIBarButtonItem+Extension.swift
//  JXHSinaWeiBo
//
//  Created by juxiaohui on 16/10/17.
//  Copyright © 2016年 juxiaohui. All rights reserved.
//

import UIKit

extension UIBarButtonItem {

    /*
   convenience init(imageName : String) {
    self.init()
    let btn = UIButton()
    btn.setImage(UIImage.init(named: imageName), for: .normal)
    btn.setImage(UIImage.init(named: imageName + "_highlighted"), for: .highlighted)
    btn.sizeToFit()
    self.customView = btn
    
    }*/
    
    convenience init(imageName : String) {
        let btn = UIButton()
        btn.setImage(UIImage.init(named: imageName), for: .normal)
        btn.setImage(UIImage.init(named: imageName + "_highlighted"), for: .highlighted)
        btn.sizeToFit()
        self.init(customView:btn)
    }
}
